<template>
    <div>
        图书id：{{bookid}}
    </div>
</template>

<script>
import {request} from '@/utils'
export default {
    data () {
        return {
            bookid: ''
        }
    },
    onShow () {
        this.bookid =this.$root.$mp.query.id;
        this.getDetail()
    },

    methods: {
        async getDetail () {
            const res = await request('/weapp/bookdetails', 'GET',{
                id: this.bookid
            })
        }
    }
    
}
</script>

<style>

</style>
